//package com.kly.chatter.api.application.controller.model;
//
//import com.fqgj.common.api.Page;
//import com.fqgj.common.api.Response;
//import com.fqgj.log.factory.LogFactory;
//import com.fqgj.log.interfaces.Log;
//import com.kly.user.service.UserService;
//import com.kly.user.service.WlmService;
//import org.springframework.web.bind.annotation.*;
//
//import javax.annotation.Resource;
//
///**
// * @author linqu
// */
//@RestController
//@RequestMapping("/api/user/match")
//public class ModelController {
//
//    private static final Log logger = LogFactory.getLog(ModelController.class);
//
//
//    @Resource
//    private UserService userService;
//
//    @Resource
//    private WlmService wlmService;
//
//    /**
//     * 双方互相Like， match成功后建联
//     *
//     * @return 返回建联成功后的wlm信息
//     */
//    @ResponseBody
//    @RequestMapping(value = "/newMatchList")
//    public Response matchedList(@RequestBody MatchedWlmUserRequest matchedWlmUserRequest) {
//
//        final Page page = buildPage(matchedWlmUserRequest.getPageSize(), matchedWlmUserRequest.getPageNum());
//
//        /*String userCode = RequestLocalInfo.getCurrentUser().getUserCode();
//        final Page page = buildPage(matchedWlmUserRequest.getPageSize(), matchedWlmUserRequest.getPageNum());
//        final List<WlmUserDto> wlmUserDtoList = RpcUtils.getResult(wlmService.queryLikeEachOtherList(userCode, page));
//        if (CollectionUtils.isNotEmpty(wlmUserDtoList)) {
//            final List<MatchedWlmUserResponse> matchedWlmUserResponses = wlmUserDtoList.parallelStream().map(o -> {
//                MatchedWlmUserResponse vo = MatchedWlmUserResponse.builder().build();
//                BeanUtils.copyProperties(o, vo);
//                return vo;
//            }).collect(Collectors.toList());
//            return Response.ok(matchedWlmUserResponses);
//
//        }*/
//        return Response.ok();
//    }
//
//    private Page buildPage(Integer pageSize, Integer pageNum) {
//        Page page = new Page();
//        page.setPageSize(pageSize);
//        page.setCurrentPage(pageNum);
//        return page;
//    }
//
//
//}
